/*
 * Copyright (c) 2022, tyustli
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-03-08     tyustli      first implementation
 */

#include <stdio.h>
#include <math.h>
#include <stdlib.h>

#include <stdio.h>

void swap_data(int *a, int *b)
{
    int tmp;

    tmp = *a;
    *a = *b;
    *b = tmp;
}

int main(int argc, char *argv[])
{
    int a = 10;
    int b = 20;
    printf("swap before %d %d\r\n", a, b);

    swap_data(&a, &b);
    printf("swap after %d %d\r\n", a, b);

    return 0;
}

/********************** end of file **************************/
